bitkeeper revision 1.1389.5.16 (427a2d48fB11IAeFlv0AL07RxME0vg)
authorsmh22@tempest.cl.cam.ac.uk <smh22@tempest.cl.cam.ac.uk>
Thu, 5 May 2005 14:27:20 +0000 (14:27 +0000)
committersmh22@tempest.cl.cam.ac.uk <smh22@tempest.cl.cam.ac.uk>
Thu, 5 May 2005 14:27:20 +0000 (14:27 +0000)
build privcmd even in unpriv domains; minor libxc fix

Signed-off-by: Steven Hand <steven@xensource.com>
BitKeeper/etc/ignore
linux-2.6.11-xen-sparse/drivers/xen/Makefile
tools/libxc/xc_domain.c

index 3f65adddadb0e26ef88e0a3039b23727fef744ef..419124272e305451895e2c34e60de782a99e14cf 100644 (file)
@@ -140,3 +140,8 @@ xen/tools/figlet/figlet
 xen/xen
 xen/xen-syms
 xen/xen.*
+CRASH.txt
+linux-2.4.29-xen-sparse/arch/xen/kernel/foo.ps
+skiing-defaults2
+tools/libxc/xc_linux_restore.c.SMH
+tools/libxc/xc_linux_save.c.SMH
index 7bb47983097349baf5728a4abfbfe746986860da..50e13067a3529a14022dc2441122c8f2418b1034 100644 (file)
@@ -3,8 +3,8 @@
 obj-y  += console/
 obj-y  += evtchn/
 obj-y  += balloon/
+obj-y  += privcmd/
 
-obj-$(CONFIG_XEN_PRIVILEGED_GUEST)     += privcmd/
 obj-$(CONFIG_XEN_BLKDEV_BACKEND)       += blkback/
 obj-$(CONFIG_XEN_NETDEV_BACKEND)       += netback/
 obj-$(CONFIG_XEN_BLKDEV_FRONTEND)      += blkfront/
index cb5ae76269c3b76c07f970b5da235ca319b4a612..488139cfd1265bf325d1c9be62b3ce3a6dc060e0 100644 (file)
@@ -103,6 +103,7 @@ int xc_domain_getinfo(int xc_handle,
     unsigned int nr_doms;
     u32 next_domid = first_domid;
     dom0_op_t op;
+    int rc = 0; 
 
     for ( nr_doms = 0; nr_doms < max_doms; nr_doms++ )
     {
@@ -110,7 +111,7 @@ int xc_domain_getinfo(int xc_handle,
         op.u.getdomaininfo.domain = (domid_t)next_domid;
         op.u.getdomaininfo.exec_domain = 0; // FIX ME?!?
         op.u.getdomaininfo.ctxt = NULL; /* no exec context info, thanks. */
-        if ( do_dom0_op(xc_handle, &op) < 0 )
+        if ( (rc = do_dom0_op(xc_handle, &op)) < 0 )
             break;
         info->domid   = (u16)op.u.getdomaininfo.domain;
 
@@ -137,6 +138,8 @@ int xc_domain_getinfo(int xc_handle,
         info++;
     }
 
+    if(!nr_doms) return rc; 
+
     return nr_doms;
 }